<div class="f-form"><form <?php echo $this->attr($attr); ?>>
<input type="hidden" name="_f_submit_" value="_f_submit_" />
<input type="hidden" name="_f_form_id_" value="<?php echo htmlspecialchars($id); ?>" />
<?php 
if (isset($title)) { ?><h2><?php echo $title; ?></h2><?php }
if (isset($form->messages[$id])) { ?><div class="f-form-message"><span><?php echo $form->messages[$id]; ?></span></div>
<?php }
	foreach ($elements as $id => $element) {
		$params = array('element' => $element);
		if (isset($form->messages[$id])) 
			$params['message'] = $form->messages[$id];
		$this->render($element['wrapper'],$params);
	}
?>
</form></div>
